package org.hyh.core.model.properties;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @auther :hyh
 * @desc :
 * @date :2020/7/12
 */
@Component
@Slf4j
@Data
@ConfigurationProperties(prefix = JwtProperties.JTW_CONFIG)
public class JwtProperties {
    public final static String TOKEN_HEADER_NAME = "X-TOKEN";
    public final static String JTW_CONFIG = "jwt.config";

    private  String  secretKey;

    private String  issuer;

    private  long  expiryMillis;

    private String audience;
}
